<?php
/**
 *
 * PHP 5
 *
 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
 * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
 *
 * Licensed under The MIT License
 * Redistributions of files must retain the above copyright notice.
 *
 * @copyright     Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
 * @link          http://cakephp.org CakePHP(tm) Project
 * @package       Cake.View.Layouts
 * @since         CakePHP(tm) v 0.10.0.1076
 * @license       MIT License (http://www.opensource.org/licenses/mit-license.php)
 */

$cakeDescription ="oursystem";
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	 
	<title>
	..::: F M S :::.. Faculty Management System
	</title>
	
<?php echo $this->Html->charset();?>

<!-- Apple iOS and Android stuff (do not remove) -->
<meta name="apple-mobile-web-app-capable" content="no" />
<meta name="apple-mobile-web-app-status-bar-style" content="black" />

<meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=no,maximum-scale=1" />

<!-- Required Stylesheets --> 

<?php echo $this->Html->css(array("extra.css","reset.css","text.css","fonts/ptsans/stylesheet.css","fluid.css",
   "core/shared.css","core/panels.css","core/core.css","core/error.css","core/button.css","icons/16x16.css",
   "icons/24x24.css","icons/32x32.css","core/table.css","../jui/css/jquery.ui.all.css","theme","core/form.css","core/misc.css"));

echo $this->Html->script(array("jquery-1.7.2.min.js","core/mws.js","demo/demo.js","../jui/js/jquery-ui-1.8.20.min.js","../jui/js/jquery.ui.timepicker.min.js"));
    
?>  
    
 
<script src="<?php echo $this->webroot;?>plugins/jgrowl/jquery.jgrowl-min.js" type="text/javascript"></script>
<script src="<?php echo $this->webroot;?>plugins/datatables/jquery.dataTables.min.js" type="text/javascript"></script>

<script type="text/javascript">
$(document).ready(function() {
	$(".mws-datepicker").datepicker({
            showOtherMonths:true,
            dateFormat:"yy-mm-dd"
         });
	$(".mws-tabs").tabs();
 	$("#mws-ui-button-radio, #mws-ui-button-cb").buttonset();

});
</script>
 <style>
 <?php echo $_COOKIE["User"]["style"];?>
 </style>
 <!-- Plugin Scripts --> 
<!--[if lt IE 9]>
<script type="text/javascript" src="plugins/flot/excanvas.min.js"></script>
<![endif]--> 
 

</head>
<body>
 <?php //AppController::RunOurSystem();?>
 

	<!-- Header -->
	<div id="mws-header" class="clearfix">
    
    	<!-- Logo Container -->
    	<div id="mws-logo-container">
        
        	<!-- Logo Wrapper, images put within this wrapper will always be vertically centered -->
        	<div id="mws-logo-wrap">
            	<a href="<?php echo $this->webroot; ?>" ><img src="<?php echo $this->webroot."images/logo.png";?>" alt="mws admin" /></a>
			</div>
        </div>
        
        <!-- User Tools (notifications, logout, profile, change password) -->
        <div id="mws-user-tools" class="clearfix">
        
        	<!-- Notifications -->
        	<div id="mws-user-notif" class="mws-dropdown-menu">
            	<a href="#" class="mws-i-24 i-alert-2 mws-dropdown-trigger">Notifications</a>
                
                <!-- Unread notification count -->
                <span class="mws-dropdown-notif">35</span>
                
                <!-- Notifications dropdown -->
                <div class="mws-dropdown-box">
                	<div class="mws-dropdown-content">
                        <ul class="mws-notifications">
                        	<li class="read">
                            	<a href="#">
                                    <span class="message">
                                        Lorem ipsum dolor sit amet consectetur adipiscing elit, et al commore
                                    </span>
                                    <span class="time">
                                        January 21, 2012
                                    </span>
                                </a>
                            </li>
                        	<li class="read">
                            	<a href="#">
                                    <span class="message">
                                        Lorem ipsum dolor sit amet
                                    </span>
                                    <span class="time">
                                        January 21, 2012
                                    </span>
                                </a>
                            </li>
                        	<li class="unread">
                            	<a href="#">
                                    <span class="message">
                                        Lorem ipsum dolor sit amet
                                    </span>
                                    <span class="time">
                                        January 21, 2012
                                    </span>
                                </a>
                            </li>
                        	<li class="unread">
                            	<a href="#">
                                    <span class="message">
                                        Lorem ipsum dolor sit amet
                                    </span>
                                    <span class="time">
                                        January 21, 2012
                                    </span>
                                </a>
                            </li>
                        </ul>
                        <div class="mws-dropdown-viewall">
	                        <a href="#">View All Notifications</a>
                        </div>
                    </div>
                </div>
            </div>
            
            <!-- Messages -->
            <div id="mws-user-message" class="mws-dropdown-menu">
            	<a href="#" class="mws-i-24 i-message mws-dropdown-trigger">Messages</a>
                
                <!-- Unred messages count -->
                <span class="mws-dropdown-notif">35</span>
                
                <!-- Messages dropdown -->
                <div class="mws-dropdown-box">
                	<div class="mws-dropdown-content">
                        <ul class="mws-messages">
                        	<li class="read">
                            	<a href="#">
                                    <span class="sender">John Doe</span>
                                    <span class="message">
                                        Lorem ipsum dolor sit amet consectetur adipiscing elit, et al commore
                                    </span>
                                    <span class="time">
                                        January 21, 2012
                                    </span>
                                </a>
                            </li>
                        	<li class="read">
                            	<a href="#">
                                    <span class="sender">John Doe</span>
                                    <span class="message">
                                        Lorem ipsum dolor sit amet
                                    </span>
                                    <span class="time">
                                        January 21, 2012
                                    </span>
                                </a>
                            </li>
                        	<li class="unread">
                            	<a href="#">
                                    <span class="sender">John Doe</span>
                                    <span class="message">
                                        Lorem ipsum dolor sit amet
                                    </span>
                                    <span class="time">
                                        January 21, 2012
                                    </span>
                                </a>
                            </li>
                        	<li class="unread">
                            	<a href="#">
                                    <span class="sender">John Doe</span>
                                    <span class="message">
                                        Lorem ipsum dolor sit amet
                                    </span>
                                    <span class="time">
                                        January 21, 2012
                                    </span>
                                </a>
                            </li>
                        </ul>
                        <div class="mws-dropdown-viewall">
	                        <a href="#">View All Messages</a>
                        </div>
                    </div>
                </div>
            </div>
            
            <!-- User Information and functions section -->
            <div id="mws-user-info" class="mws-inset">
            
            	<!-- User Photo -->
            	<div id="mws-user-photo">
<!--                	<img src="example/profile.jpg" alt="User Photo" />-->
                </div>
                
                <!-- Username and Functions -->
                <div id="mws-user-functions">
                    <div id="mws-username">
<?php   if(isset($_SESSION['Auth']['User']['username'])){
echo($_SESSION['Auth']['User']['username']);
}
                   ?>
                    </div>
                    <ul>
                    	<li><a href="#">Profile</a></li>
                        <li><a href="#">Change Password</a></li>
                    <?php 
		echo '<li>'.$this->Html->link(__('Logout'),array('controller' => 'users', 'action' => 'logout')).'</li>'; ?> </ul>
                </div>
            </div>
        </div>
    </div>
    
    <!-- Start Main Wrapper -->
    <div id="mws-wrapper">
    
    	<!-- Necessary markup, do not remove -->
		<div id="mws-sidebar-stitch"></div>
		<div id="mws-sidebar-bg"></div>
        
        <!-- Sidebar Wrapper -->
        <div id="mws-sidebar">
        
        	<!-- Searchbox -->
        	<div id="mws-searchbox" class="mws-inset">
            	<form action="">
                	<input type="text" class="mws-search-input" />
                    <input type="submit" class="mws-search-submit" />
                </form>
            </div>
            
            <!-- Main Navigation -->
            <div id="mws-navigation">
            	<ul>
                	<li>
                	<a href="<?php echo $this->Html->url(array("controller"=>"configurations","action"=>"theme"));?>" class="mws-ic-16 ic-lightbulb-off">اعدادت النظام</a></li>
                	<li class="active">
                    	<a href="#" class="mws-ic-16 ic-lightbulb">الفرق</a>
                        <ul <?php echo (($this->params["controller"]=="stages")?"class='open'": "class='closed'")?>>
                        	<li><a href="<?php echo $this->Html->url(array("controller"=>"stages","action"=>"index"));?>" class="mws-ic-16 ic-lightbulb-off">الفرق</a></li>
                        	<li><a href="<?php echo $this->Html->url(array("controller"=>"stages","action"=>"add"));?>" class="mws-ic-16 ic-lightbulb-off">اضافة</a></li>
                        </ul>
                    </li>
                	<li class="active">
                    	<a href="#" class="mws-ic-16 ic-lightbulb">العام الجامعى</a>
                        <ul <?php echo (($this->params["controller"]=="uniyears")?"class='open'": "class='closed'")?>>
                        	<li><a href="<?php echo $this->Html->url(array("controller"=>"uniyears","action"=>"index"));?>" class="mws-ic-16 ic-lightbulb-off">عرض الكل</a></li>
                        	<li><a href="<?php echo $this->Html->url(array("controller"=>"uniyears","action"=>"add"));?>" class="mws-ic-16 ic-lightbulb-off">اضافة</a></li>
                        </ul>
                    </li>
                	 
                	<li class="active">
                    	<a href="#" class="mws-ic-16 ic-lightbulb">الشعب</a>
                        <ul <?php echo (($this->params["controller"]=="branches")?"class='open'": "class='closed'")?>>
                        	<li><a href="<?php echo $this->Html->url(array("controller"=>"branches","action"=>"index"));?>" class="mws-ic-16 ic-lightbulb-off">عرض الكل</a></li>
                        	<li><a href="<?php echo $this->Html->url(array("controller"=>"branches","action"=>"add"));?>" class="mws-ic-16 ic-lightbulb-off">اضافة</a></li>
                        </ul>
                    </li>
                	<li class="active">
                    	<a href="#" class="mws-ic-16 ic-lightbulb">المواد</a>
                        <ul <?php echo (($this->params["controller"]=="subjects")?"class='open'": "class='closed'")?>>
                        	<li><a href="<?php echo $this->Html->url(array("controller"=>"subjects","action"=>"index"));?>" class="mws-ic-16 ic-lightbulb-off">عرض الكل</a></li>
                        	<li><a href="<?php echo $this->Html->url(array("controller"=>"subjects","action"=>"add"));?>" class="mws-ic-16 ic-lightbulb-off">اضافة</a></li>
                        <li><a href="<?php echo $this->Html->url(array("controller"=>"options","action"=>"subject_fields"));?>" class="mws-ic-16 ic-lightbulb-off">ضبط اعدادات</a></li>
                        </ul>
                    </li>
                	<li class="active">
                    	<a href="#" class="mws-ic-16 ic-lightbulb">الطلاب</a>
                        <ul <?php echo (($this->params["controller"]=="students")?"class='open'": "class='closed'")?>>
                        	<li><a href="<?php echo $this->Html->url(array("controller"=>"students","action"=>"index"));?>" class="mws-ic-16 ic-lightbulb-off">عرض الكل</a></li>
                        	<li><a href="<?php echo $this->Html->url(array("controller"=>"students","action"=>"add"));?>" class="mws-ic-16 ic-lightbulb-off">اضافة</a></li>
                           <li><a href="<?php echo $this->Html->url(array("controller"=>"options","action"=>"student_fields"));?>" class="mws-ic-16 ic-lightbulb-off">ضبط اعدادات</a></li>
                        </ul>
                    </li>
                    <li class="active">
                    	<a href="#" class="mws-ic-16 ic-lightbulb">الترم</a>
                        <ul <?php echo (($this->params["controller"]=="")?"class='open'": "class='closed'")?>>
                        	<li><a href="<?php echo $this->Html->url(array("controller"=>"terms","action"=>"index"));?>" class="mws-ic-16 ic-lightbulb-off">عرض الكل</a></li>
                        	<li><a href="<?php echo $this->Html->url(array("controller"=>"terms","action"=>"add"));?>" class="mws-ic-16 ic-lightbulb-off">اضافة</a></li>
                        </ul>
                         </li>
                    	<li class="active">
                    	<a href="#" class="mws-ic-16 ic-lightbulb">فترات الإمتحان</a>
                        <ul <?php echo (($this->params["controller"]=="")?"class='open'": "class='closed'")?>>
                        	<li><a href="<?php echo $this->Html->url(array("controller"=>"periodexams","action"=>"index"));?>" class="mws-ic-16 ic-lightbulb-off">عرض الكل</a></li>
                        	<li><a href="<?php echo $this->Html->url(array("controller"=>"periodexams","action"=>"add"));?>" class="mws-ic-16 ic-lightbulb-off">اضافة</a></li>
                        </ul>
                         </li>
                        <li class="active">
                    	<a href="#" class="mws-ic-16 ic-lightbulb">الإمتحانات</a>
                        <ul <?php echo (($this->params["controller"]=="")?"class='open'": "class='closed'")?>>
                        	<li><a href="<?php echo $this->Html->url(array("controller"=>"exams","action"=>"index"));?>" class="mws-ic-16 ic-lightbulb-off">عرض الكل</a></li>
                        	<li><a href="<?php echo $this->Html->url(array("controller"=>"exams","action"=>"add"));?>" class="mws-ic-16 ic-lightbulb-off">اضافة</a></li>
                        </ul>
                         </li>
                             <li class="active">
                    	<a href="#" class="mws-ic-16 ic-lightbulb">المعلمين</a>
                        <ul <?php echo (($this->params["controller"]=="")?"class='open'": "class='closed'")?>>
                        	<li><a href="<?php echo $this->Html->url(array("controller"=>"teachers","action"=>"index"));?>" class="mws-ic-16 ic-lightbulb-off">عرض الكل</a></li>
                        	<li><a href="<?php echo $this->Html->url(array("controller"=>"teachers","action"=>"add"));?>" class="mws-ic-16 ic-lightbulb-off">اضافة</a></li>
                        </ul>
                         </li>
                              <li class="active">
                    	<a href="#" class="mws-ic-16 ic-lightbulb">نتائج الامتحانات</a>
                        <ul <?php echo (($this->params["controller"]=="")?"class='open'": "class='closed'")?>>
                        	<li><a href="<?php echo $this->Html->url(array("controller"=>"resultexams","action"=>"index"));?>" class="mws-ic-16 ic-lightbulb-off">عرض الكل</a></li>
                        	<li><a href="<?php echo $this->Html->url(array("controller"=>"resultexams","action"=>"add"));?>" class="mws-ic-16 ic-lightbulb-off">اضافة</a></li>
                        </ul>
                         </li>
                         <li class="active">
                    	<a href="#" class="mws-ic-16 ic-lightbulb">الاقسام الرئيسية</a>
                        <ul <?php echo (($this->params["controller"]=="branches")?"class='open'": "class='closed'")?>>
                        	<li><a href="<?php echo $this->Html->url(array("controller"=>"categories","action"=>"index"));?>" class="mws-ic-16 ic-lightbulb-off">عرض الكل</a></li>
                        	<li><a href="<?php echo $this->Html->url(array("controller"=>"categories","action"=>"add"));?>" class="mws-ic-16 ic-lightbulb-off">اضافة</a></li>
                        </ul>
                    </li>
                	<li><a href="#" >&nbsp;</a></li>
                	<li><a href="#" > &nbsp;</a></li> 
<!--                	<li><a href="#" class="mws-ic-16 ic-lightbulb-off">--</a></li>-->
               	<li>
                    	<a href="#" class="mws-ic-16 ic-lightbulb-off">
                        	 أعلى الصفحة<span class="mws-nav-tooltip">Top</span>
                        </a>
                    </li>
                </ul>
            </div>
        </div>
        
        <!-- Main Container Start -->
        <div id="mws-container" class="clearfix">
        
        	<!-- Inner Container Start -->
            <div class="container">
            <?php  echo $this->Session->flash(); ?>

<?php  echo $this->fetch('content'); ?>
             
            </div>
            <!-- Inner Container End -->
                       
            <!-- Footer -->
            <div id="mws-footer">
            	Copyright AZSTART.COM 2012. All Rights Reserved.
            </div>
            
        </div>
        <!-- Main Container End -->
        
    </div>
 
 
 
</body>
</html>
